Requirements

Before starting to work with virtual robots, you need these requirments on your system:

Ubuntu 20.04 LTS “Focal Fossa”

ROS 2 Robot Operating System (ROS)

Gazebo 11


Installation

Important:

Please note that in case you are using cloud based simulation services like The Construct Sim or AWS RoboMaker, You can skip this part and proceed to the Getting Started Page.

  1. Download and Install Ubuntu on your PC
  2. Install ROS 2 foxy version

    Open a terminal console with Ctrl+Alt+T and enter the following commands one at a time.

     sudo apt update && sudo apt install curl gnupg2 lsb-release
     sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key  -o /usr/share/keyrings/ros-archive-keyring.gpg
     echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
     sudo sed -i -e 's/ubuntu .* main/ubuntu focal main/g' /etc/apt/sources.list.d/ros2.list
    

    If the above installation fails, please refer to the official ROS2 Foxy installation guide.

  3. Install Dependent ROS 2 Packages
    • Open the terminal with Ctrl+Alt+T from Remote PC.
    • Install Base Packages
       sudo apt update
       sudo apt install ros-foxy-desktop
       sudo apt install ros-foxy-ros-base
      
    • Install Gazebo11
       sudo apt-get install ros-foxy-gazebo-*
      
    • Install Cartographer
       sudo apt install ros-foxy-cartographer
       sudo apt install ros-foxy-cartographer-ros
      
    • Install Navigation 2
       sudo apt install ros-foxy-navigation2
       sudo apt install ros-foxy-nav2-bringup
      
    • Add sourcing to your shell startup script by sourcing the setup.bash file
       echo "source /opt/ros/foxy/setup.bash" >> ~/.bashrc